﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyData.Dto
{
    public class VisitorDto : DtoBase
    {
        public string Company { get; set; }
        public string Name { get; set; }
        public string HeadUrl { get; set; }
        public string PhoneNum { get; set; }
        public Guid DepartId { get; set; }
        public string DepartName { get; set; }
        public string OwnerName { get; set; }
        public DateTime StartDate { get; set; } = DateTime.Now.AddDays(1);
        public DateTime EndDate { get; set; } = DateTime.Now.AddDays(3);
        public string Remark { get; set; }
        public int NeedConfirm { get; set; }
        public int IsDelete { get; set; }
        public string IsDeleteStr { get {
                return Enum.GetName(typeof(EnumVisitorIsDelete),this.IsDelete);
            } }
        public string StartDateStr { get {
                return this.StartDate.ToString("yyyy-MM-dd HH:mm");
            } }
        public string EndDateStr
        {
            get
            {
                return this.EndDate.ToString("yyyy-MM-dd HH:mm");
            }
        }
    }
}
